#Contributor: Wang Shouju <TheThirdGhost[AT]gmail[DOT]com>

pkgname=reciteword-alsa
pkgver=0.8.4
pkgrel=1
pkgdesc="a education software to help people to study English with alsa support"
arch=(i686 x86_64)
url="http://reciteword.cosoft.org.cn"
license="GPL"
depends=('glibc' 'perlxml')
makedepends=()
conflicts=('reciteword')
replaces=()
backup=()
install=
source=("http://downloads.sourceforge.net/reciteword/reciteword-$pkgver.tar.bz2"
                 'http://downloads.sourceforge.net/reciteword/reciteword-books-0.8.4.tar.bz2'
                 'wget http://downloads.sourceforge.net/reciteword/reciteword-dicts-0.8.2.tar.bz2'
                 )
md5sums=('09fb54601d29c30d3c73ad93fe49399d')


build() {
  cd $startdir/src/reciteword-$pkgver
  patch -p1 -i ../../reciteword-alsa.patch
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
  
  cp -af $startdir/src/dicts $startdir/pkg/usr/share/reciteword/
  cp -af $startdir/src/books $startdir/pkg/usr/share/reciteword/
}
